import { fetchRequest } from "@/utils/fetchRequest";

/**
 *
 * 登录 v1.1.0 POST /staff/login/h5
 */
export const login = (params: {
  phone: string;
  password: string;
  number: string;
}) =>
  fetchRequest<{
    is_leader: 1 | 0; //1组长/部长    0组员
    department_name: string;
  }>("/staff/login/h5", params);
